home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / Developer Essentials Jul 90 / Programming / MPW Interfaces & Libraries 3.1 / PInterfaces / Scrap.p < prev    next >
Encoding:
Text File  |  1989-10-13  |  1.1 KB  |  63 lines  |  [TEXT/MPS ]

  1. {
  2. Created: Tuesday, August 2, 1988 at 10:10 AM
  3.     Scrap.p
  4.     Pascal Interface to the Macintosh Libraries
  5.  
  6.     Copyright Apple Computer, Inc.    1985-1988
  7.     All rights reserved
  8. }
  9.  
  10.  
  11. {$IFC UNDEFINED UsingIncludes}
  12. {$SETC UsingIncludes := 0}
  13. {$ENDC}
  14.  
  15. {$IFC NOT UsingIncludes}
  16.     UNIT Scrap;
  17.     INTERFACE
  18. {$ENDC}
  19.  
  20. {$IFC UNDEFINED UsingScrap}
  21. {$SETC UsingScrap := 1}
  22.  
  23. {$I+}
  24. {$SETC ScrapIncludes := UsingIncludes}
  25. {$SETC UsingIncludes := 1}
  26. {$IFC UNDEFINED UsingTypes}
  27. {$I $$Shell(PInterfaces)Types.p}
  28. {$ENDC}
  29. {$SETC UsingIncludes := ScrapIncludes}
  30.  
  31. TYPE
  32.  
  33. PScrapStuff = ^ScrapStuff;
  34. ScrapStuff = RECORD
  35.     scrapSize: LONGINT;
  36.     scrapHandle: Handle;
  37.     scrapCount: INTEGER;
  38.     scrapState: INTEGER;
  39.     scrapName: StringPtr;
  40.     END;
  41.  
  42.  
  43.  
  44. FUNCTION InfoScrap: PScrapStuff;
  45.     INLINE $A9F9;
  46. FUNCTION UnloadScrap: LONGINT;
  47.     INLINE $A9FA;
  48. FUNCTION LoadScrap: LONGINT;
  49.     INLINE $A9FB;
  50. FUNCTION GetScrap(hDest: Handle;theType: ResType;VAR offset: LONGINT): LONGINT;
  51.     INLINE $A9FD;
  52. FUNCTION ZeroScrap: LONGINT;
  53.     INLINE $A9FC;
  54. FUNCTION PutScrap(length: LONGINT;theType: ResType;source: Ptr): LONGINT;
  55.     INLINE $A9FE;
  56.  
  57. {$ENDC}    { UsingScrap }
  58.  
  59. {$IFC NOT UsingIncludes}
  60.     END.
  61. {$ENDC}
  62.  
  63.